<!-- START PAGE -->
<div id="page">
	 <!-- start page title -->
     <div class="page-title">
     	<div class="in">
	        <div class="titlebar">
	        	<h2>
	        		<?php echo $template['title']?></h2>
	        		<p>This is a quick overview of <?php echo $template['title']?></p>
	       	</div>

         </div>
     </div>
     <!-- end page title -->

     <!-- START CONTENT -->
     <div class="content">
		<?php if($this->session->flashdata('info') != '') : ?>
        <div class="albox dialogbox">
        	<div class="icon"><img src="<?php echo base_url()?>themes/admin/img/icons/16x16/note.png" width="16" height="16" alt="icon"/></div>
            	<?php echo $this->session->flashdata('info') ?>
                <a href="#" class="close tips" title="close">close</a>
            </div>
		<?php endif ?>
        <!-- Start Data Tables Initialisation code -->
		<script type="text/javascript" charset="utf-8">
			$(document).ready(function() {
    			oTable = $('#example').dataTable({
        			"bJQueryUI": true,
        			"sPaginationType": "full_numbers"
        		});
    		});
    	</script>
        <!-- End Data Tables Initialisation code -->


        <!-- START TABLE -->
                        <div class="simplebox grid740">

                        	<div class="titleh"><h3><?php echo $template['title']?></h3>
                                <div class="shortcuts-icons">
                                    <!--<a class="st-button" href="<?php echo $link_add?>" title="Add New Item">Add new</a>-->
                                </div>
                            </div>
                            <table id="example" class="display data-table">

                                	<thead>
                                		<tr>
                                			<th>ID</th>
                                            <th>Tên trang</th>
                                            <!--<th>Kiểu trang</th>-->
                                            <!--<th>Trang chủ</th>-->
                                            <th>Sửa</th>
                                            <!--<th>Xóa</th>-->
                                		</tr>
                                	</thead>

                                    <?php if(count($pages)) : ?>
                                    <tbody id="loadContent">
                                        <?php foreach($pages as $item) : ?>
                                        <tr class="gradeA">
                                            <td><?php echo $item['id']?></td>
                                            <td><?php echo $item['page_title']; ?></td>
                                            <!--<td><?php echo $item['page']; ?></td>-->
                                            <!--<td>
                                                <?php
												if ($item['status'] == 1) {
													echo "Yes";
												} else {
													echo "No";
												}
                                                ?>
                                         </td>-->
                                            <td align="center">
                                                <a href="<?php echo $link_edit . $item['id']?>"><img src="<?php echo base_url()?>themes/admin/img/edit16.png" alt=""></a></td>
                                            <!--<td align="center">
                                                <a href="javascript:void(0);" onclick="confDel('<?php echo $link_del . $item['id']?>');"><img src="<?php echo base_url()?>themes/admin/img/delete16.png" alt=""></a>
                                            </td>-->
                                        </tr>
                                        <?php endforeach ?>
                                    </tbody>
                                    <?php endif ?>
                                </table>


                        </div>
                       <!-- END TABLE -->

            </div>
            <!-- END CONTENT -->
        </div>
        <!-- END PAGE -->
    	<div class="clear"></div>

<script type="text/javascript">
function confDel(url)
{
	var conf = confirm('Are you sure that you want to delete this item');
	if(conf) {
		window.location.href= url;
	}
}

jQuery(document).ready(function() {
	jQuery('#sidemenu ul li.active').removeClass('active');
	jQuery('<?=$m_active?>').addClass('active');
});

</script>